package model.entityes.exception;

import model.UserException;

public class AllTypesException extends UserException
{

    private static final long serialVersionUID = 1L;
    
    public static AllTypesException getExceptionWhitUserMessage(String userMessage)
    {
	if( userMessage == null) userMessage = "";
	AllTypesException err = new AllTypesException();
	err.setUserException(userMessage);
	return err;
    }
    
    public static AllTypesException errorGetById(String shortName)
    {
	String errMsg;
	if( shortName == null) errMsg = "null";
	else errMsg = shortName;
	
	errMsg = "Найдено отличное от 1 количество элементов. SHORT_NAME = " + errMsg;
	return AllTypesException.getExceptionWhitUserMessage(errMsg);
    }
}
